﻿using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using JTC.Genetics._Interfaces;
using JTC.Genetics._Abstract;
using JTC.Genetics.UnitTests.Fakes;
using JTC.Genetics.Replication._Interfaces;

namespace JTC.Genetics.UnitTests
{
    [TestClass]
    public class AnimalCell_Tests
    {
        AnimalCell _instance;

        [TestInitialize]
        public void SetUp()
        {
            _instance = new FakeAnimalCell(null);
        }

        [TestMethod]
        public void is_Eukaryote()
        {
            Assert.IsInstanceOfType(_instance, typeof(Eukaryote));
        }
        
        [TestMethod]
        public void is_ICellular()
        {
            Assert.IsInstanceOfType(_instance, typeof(ICellular));
        }

        [TestMethod]
        public void is_IReplicator()
        {
            Assert.IsInstanceOfType(_instance, typeof(IReplicator));
        }

        [TestMethod]
        public void Nucleus_default()
        {
            // Assert

            Assert.IsNotNull(_instance.Nucleus);
        }

        [TestMethod]
        public void Parent_default()
        {
            // Act

            Assert.IsNull(_instance.Parent);
        }

        [TestMethod]
        public void Cytoskeleton_default()
        {
            // Act

            Assert.IsNotNull(_instance.Cytoskeleton);
        }

        [TestMethod]
        public void Mitochondria_default()
        {
            // Act

            Assert.IsNotNull(_instance.Mitochondria);
        }
    }
}
